package com.dotflat.docs.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "tb_document")
@Data
@EqualsAndHashCode(callSuper = true)
public class Document extends AreableObjectBase {

	@Column(columnDefinition = " varchar(32)  COMMENT ' 目录id'")
	private String dirId;

	@Column(columnDefinition = "int default 0   COMMENT '目录类型，冗余'")
	private Integer dirType;

	@Column(columnDefinition = " varchar(50)  COMMENT '名称'")
	private String dirTitle;

	@Column(name = "cover", columnDefinition = "varchar(255)  COMMENT '封面'")
	private String cover="";

	@Column(columnDefinition = "varchar(512) COMMENT '图片地址'")
	private String resURL;

	@Column(columnDefinition = "varchar(30) COMMENT '资源类型， 0. 其他    1.图片   2.视频'")
	private String resType;

	@Column(columnDefinition = "int default 0   COMMENT '查看者数量'")
	private Integer visitorCount;

	@Column(columnDefinition = "int default 0   COMMENT '评分'")
	private Integer rankVal;

	@Column(columnDefinition = "varchar(128) COMMENT '文章标题'")
	private String title;

	@Column(columnDefinition = "varchar(512) COMMENT '文章标题'")
	private String description;

	@Column(columnDefinition = " varchar(32)  COMMENT '上传老师名字'")
	private String staffName;

	@Column(columnDefinition = " varchar(5000)  COMMENT 'json附件'")
	private String attachJSON;

	@Column(columnDefinition = "varchar(20) COMMENT '年级或其他可以分类的字符串' ")
	private String level;

}
